package com.datang.pet.api.talkController;/*
 * @auther 顶风少年
 * @mail dfsn19970313@foxmail.com
 * @date 2019-06-13 08:51
 * @notify
 * @version 1.0
 */

import com.datang.pet.common.response.Result;
import com.datang.pet.common.utils.StringUtils;
import com.datang.pet.service.TalkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetTalkLikeLabelController {

    @Autowired
    private TalkService talkService;

    @GetMapping("/getTalkLikeLabel")
    public Result getTalkLikeLabel(String label,String talkId) throws Exception {
        if(!StringUtils.isNUll(label)){
            throw new Exception("标签不能为空");
        }
        return Result.ok(talkService.getTalkLikeLabel(label,talkId));
    }

}
